<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="live.common.Format"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<base href="<%=basePath %>" />
<TITLE>酒店预订</TITLE>
<META http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<META http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<META content="酒店预订|国内酒店预订|特价酒店预订|机票预订|特价机票|特价机票预订|打折机票|飞机票预订" name="keywords">
<META content="机票预订,特价机票预订,打折机票" name="description">
<LINK href="css/datepicker.css" type="text/css" rel="stylesheet">
<LINK href="css/datepicker1.css" type="text/css" rel="stylesheet">
<SCRIPT src="script/jquery-1.4.2.min.js" type="text/javascript"></SCRIPT>
<LINK media="all" href="css/global.css" type="text/css" rel="stylesheet">
<LINK media="all" href="css/home.css" type="text/css" rel="stylesheet">
<META content="MSHTML 6.00.2900.5945" name="GENERATOR">
<script type="text/javascript" src="../script/wpCalendar.js" charset="GBK"></script>
<style type="text/css">
<!--
.STYLE2 {color: #FF0000}
.searchbox {
	BORDER-RIGHT: #2c7eaf 0px solid; BORDER-TOP: #2c7eaf 0px solid; Z-INDEX: 98; BACKGROUND: #fff;BORDER-LEFT: #2c7eaf 0px solid; baCOLOR: #7c7c7c; BORDER-BOTTOM: #2c7eaf 0px solid; POSITION: relative;
	WIDTH:228px;height: 300px; background-image: url('/images/nybg.gif');
}
-->
</style>
</HEAD>
<BODY>
<!--Header include start-->
<!-- top 专题小头部 start -->
<!-- top 专题小头部 end --><!--Header include end--><!--Header End-->
<DIV class="wrapper clearfix" style="WIDTH:228px; height: 300px;"><!--Left Sidebar Begin-->
<!--Left Sidebar End-->
<div class="sidebar-a" style="width: 100px">

				<div class="searchbox">

					<div class="inputlist ttag block" style="height: 270px;">
<form id="form1" action="hotel/loadHotels.do" name="form1" method="get" target="_blank" style="border: 0px">
							
							<input type="hidden" name="op" value="baseHotels" />

							<ul>
<li>

									入住日期

									<input type="text" id="date" readonly="readonly" name="date2"

										value="" class="onsInput datepicker"

										 onfocus="showCalendar(this)"  />

								</li>

								<li>

									离店日期

									<input type="text" id="enddate" readonly="readonly"

										name="enddate2" 	value="" class="onsInput datepicker1"

										onfocus="showCalendar(this)" />


								</li>
								<li>

									城&nbsp;&nbsp;&nbsp;&nbsp;市

						<select id="levCity" class="onsInput" onchange="selChange(this,'firstleaveCity','Name_firstleaveCity');">
						<option value="">--请选择--</option>
								<option value="" disabled="disabled" >－－Ａ－－</option>
								<option value="AKA">安康</option>
								<option value="AQG">安庆</option>
								<option value="AOG">鞍山</option>
								<option value="ANS">安顺</option>
								<option value="" disabled="disabled">－－Ｂ－－</option>
								<option value="PEK">北京</option>
								<option value="BSD">保山</option>
								<option value="BAV">包头</option>
								<option value="BHY">北海</option>
								<option value="BFU">蚌埠</option>
								<option value="" disabled="disabled">－－Ｃ－－</option>
								<option value="CKG">重庆</option>
								<option value="CTU">成都</option>
								<option value="CSX">长沙</option>
								<option value="CGQ">长春</option>
								<option value="CGD">常德</option>
								<option value="CIF">赤峰</option>
								<option value="CHG">朝阳</option>
								<option value="CIH">长治</option>
								<option value="CZX">常州</option>
								<option value="CNI">长海</option>
								<option value="" disabled="disabled">－－Ｄ－－</option>
								<option value="DLC">大连</option>
								<option value="DDG">丹东</option>
								<option value="DNH">敦煌</option>
								<option value="DLU">大理</option>
								<option value="DIG">迪庆</option>
								<option value="DAX">达县</option>
								<option value="DAT">大同</option>
								<option value="DOY">东营</option>
								<option value="" disabled="disabled">－－Ｅ－－</option>
								<option value="ENH">恩施</option>
								<option value="DSN">鄂尔多斯</option>
								<option value="" disabled="disabled">－－Ｆ－－</option>
								<option value="FOC">福州</option>
								<option value="FYN">富蕴</option>
								<option value="FUG">阜阳</option>
								<option value="FUO">佛山</option>
								<option value="" disabled="disabled">－－Ｇ－－</option>
								<option value="CAN">广州</option>
								<option value="KWL">桂林</option>
								<option value="KWE">贵阳</option>
								<option value="KOW">赣州</option>
								<option value="GOQ">格尔木</option>
								<option value="GHN">广汉</option>
								<option value="GYS">广元</option>
								<option value="" disabled="disabled">－－Ｈ－－</option>
								<option value="HGH">杭州</option>
								<option value="HRB">哈尔滨</option>
								<option value="HFE">合肥</option>
								<option value="HET">呼和浩特</option>
								<option value="HAK">海口</option>
								<option value="TXN">黄山</option>
								<option value="HLD">海拉尔</option>
								<option value="HEK">黑河</option>
								<option value="HMI">哈密</option>
								<option value="HTN">和田</option>
								<option value="HYN">黄岩</option>
								<option value="HNY">衡阳</option>
								<option value="HZG">汉中</option>
								<option value="" disabled="disabled">－－Ｊ－－</option>
								<option value="JIL">吉林</option>
								<option value="TNA">济南</option>
								<option value="JZH">九寨沟</option>
								<option value="KNC">吉安</option>
								<option value="JNG">济宁</option>
								<option value="JMU">佳木斯</option>
								<option value="JGN">嘉峪关</option>
								<option value="JDZ">景德镇</option>
								<option value="JHG">景洪</option>
								<option value="JJN">晋江</option>
								<option value="JNZ">锦州</option>
								<option value="CHW">酒泉</option>
								<option value="JIU">九江</option>
								<option value="JGS">井冈山</option>
								<option value="" disabled="disabled">－－Ｋ－－</option>
								<option value="KMG">昆明</option>
								<option value="KRY">克拉玛依</option>
								<option value="KHG">喀什</option>
								<option value="KRL">库尔勒</option>
								<option value="KCA">库车</option>
								<option value="" disabled="disabled">－－Ｌ－－</option>
								<option value="LHW">兰州</option>
								<option value="LXA">拉萨</option>
								<option value="LYG">连云港</option>
								<option value="LJG">丽江</option>
								<option value="LYI">临沂</option>
								<option value="LZH">柳州</option>
								<option value="LYA">洛阳</option>
								<option value="LNJ">临沧</option>
								<option value="LZO">泸州</option>
								<option value="LCX">连城</option>
								<option value="" disabled="disabled">－－Ｍ－－</option>
								<option value="LUM">芒市</option>
								<option value="MXZ">梅县</option>
								<option value="NZH">满洲里</option>
								<option value="MIG">绵阳</option>
								<option value="MDG">牡丹江</option>
								<option value="" disabled="disabled">－－Ｎ－－</option>
								<option value="NKG">南京</option>
								<option value="KHN">南昌</option>
								<option value="NGB">宁波</option>
								<option value="NAO">南充</option>
								<option value="WUS">南平</option>
								<option value="NNG">南宁</option>
								<option value="NTG">南通</option>
								<option value="NNY">南阳</option>
								<option value="" disabled="disabled">－－Ｐ－－</option>
								<option value="PZI">攀枝花</option>
								<option value="" disabled="disabled">－－Ｑ－－</option>
								<option value="TAO">青岛</option>
								<option value="NDG">齐齐哈尔</option>
								<option value="SHP">秦皇岛</option>
								<option value="IQM">且末</option>
								<option value="IQN">庆阳</option>
								<option value="JJN">泉州</option>
								<option value="JUZ">衢州</option>
								<option value="" disabled="disabled">－－Ｓ－－</option>
								<option value="SHA">上海</option>
								<option value="SZX">深圳</option>
								<option value="SHE">沈阳</option>
								<option value="SJW">石家庄</option>
								<option value="SZV">苏州</option>
								<option value="SYX">三亚</option>
								<option value="SWA">汕头</option>
								<option value="SHS">沙市</option>
								<option value="SYM">思茅</option>
								<option value="" disabled="disabled">－－Ｔ－－</option>
								<option value="TYN">太原</option>
								<option value="TSN">天津</option>
								<option value="TCG">塔城</option>
								<option value="TNH">通化</option>
								<option value="TGO">通辽</option>
								<option value="TEN">铜仁</option>
								<option value="" disabled="disabled">－－Ｗ－－</option>
								<option value="WUH">武汉</option>
								<option value="WNZ">温州</option>
								<option value="URC">乌鲁木齐</option>
								<option value="WUX">无锡</option>
								<option value="WXN">万州</option>
								<option value="WEF">潍坊</option>
								<option value="WEH">威海</option>
								<option value="HLH">乌兰浩特</option>
								<option value="WUZ">乌海</option>
								<option value="WUS">武夷山</option>
								<option value="WUZ">梧州</option>
								<option value="WNH">文山</option>
								<option value="" disabled="disabled">－－Ｘ－－</option>
								<option value="XIY">西安</option>
								<option value="XMN">厦门</option>
								<option value="DIG">香格里拉</option>
								<option value="XNN">西宁</option>
								<option value="XUZ">徐州</option>
								<option value="JHG">西双版纳</option>
								<option value="XFN">襄樊</option>
								<option value="XIC">西昌</option>
								<option value="XIL">锡林浩特</option>
								<option value="ACX">兴义</option>
								<option value="XNT">邢台</option>
								<option value="" disabled="disabled">－－Ｙ－－</option>
								<option value="INC">银川</option>
								<option value="ENY">延安</option>
								<option value="YNJ">延吉</option>
								<option value="YNT">烟台</option>
								<option value="YNZ">盐城</option>
								<option value="YBP">宜宾</option>
								<option value="YIH">宜昌</option>
								<option value="YIN">伊宁</option>
								<option value="YIW">义乌</option>
								<option value="UYN">榆林</option>
								<option value="YCU">运城</option>
								<option value="LLF">永州</option>
								<option value="" disabled="disabled">－－Ｚ－－</option>
								<option value="CGO">郑州</option>
								<option value="ZUH">珠海</option>
								<option value="ZAT">昭通</option>
								<option value="DYG">张家界</option>
								<option value="ZHA">湛江</option>
								<option value="HSN">舟山</option>
								<option value="ZYI">遵义</option>
								<option value="HJJ">芷江</option>
							</select>				
									
									<input type="hidden" id="firstleaveCity" name="firstleaveCityName" value="" />
									 <input type="hidden" id="Name_firstleaveCity" name="Name_firstleaveCityName"  value=""	class="onsInput"/>
								</li>

							</ul>

							<!-- 高级查询 -->


							<div class="cxb">

								<input name="hotelSubmit" type="button" class="searchform" value="查询" onclick="goSearch()" />
								<input id="fade" value="" type="hidden">
							</div>

					
						</form>
						

					</div>

				</div>

			</div>
	<script type="text/javascript">
		function selChange(obj,hid,tid){
				$('#'+hid).val($(obj).val());
				$('#'+tid).val($(obj).find('option:selected').text());
				if($.trim($(obj).val())==''){$('#'+tid).val('');};
			}
		function goSearch(){
			$('#fade').data("status",1);
			var startTime=$('#date').val();
			var endTime=$('#enddate').val();
			var today=new Date('<%=Format.getInstance().dateFormatString(new Date(),"yyyy/MM/dd")%>');
			var startDate=new Date(startTime.replace("-","/"));
			var endDate=new Date(endTime.replace("-","/"));
			var clacDay=(endDate-startDate)/1000/60/60/24;
			if(startDate<today){alert('入住日期不的小于当前日期');$('#date').focus();$('#fade').data("status",0);return false;}
			if(endDate<=startDate){alert('离店日期不能小于入住日期');$('#enddate').focus();$('#fade').data("status",0);return false;}
			if(clacDay>14){alert('只能预定14天内的酒店');$('#enddate').focus();$('#fade').data("status",0);return false;}
			if($('#levCity').val()==''){alert('请选择入住城市');$('#levCity').focus();$('#fade').data("status",0);return false;}
			if($('#fade').data("status")==1){$('form:first').submit();};
		}
		function initDate(id,dayNum){
			var date = new Date();
			date = new Date(<%=new Date().getTime()%>+24*60*60*1000*dayNum);
			var year=date.getFullYear();
			var month=date.getMonth()+1;
			if(parseInt(month)<10){month='0'+month;}
			var day=date.getDate();
			if(parseInt(day)<10){day='0'+day;}
			$('#'+id).val(year+'-'+month+'-'+day)
		}
		initDate('date',1);
		initDate('enddate',2);
	</script></DIV>
</BODY></HTML>
